
#include "printf.h"
#include "../shared/NetworkPacket.h"

configuration HubAppC
{
}
implementation
{
	components new AMSenderC(AM_HUB_ID);
	components new AMReceiverC(AM_HUB_ID);
	components MainC;
	components HubP;
	components ActiveMessageC;
	components LedsC;
	components PrintfC;

	components SerialActiveMessageC as Serial;

	
	HubP.Boot -> MainC;
	HubP.AMSend -> AMSenderC;
	HubP.Receive -> AMReceiverC;
	HubP.Packet -> AMSenderC;
	HubP.AMPacket -> AMSenderC;


	HubP.SerialControl -> Serial;

	HubP.UartReceive -> Serial;
	HubP.UartPacket -> Serial;
	HubP.UartAMPacket -> Serial;


	HubP.RadioPowerControl -> ActiveMessageC;
	HubP.Leds -> LedsC;
	HubP.PrintfControl -> PrintfC;
	HubP.PrintfFlush -> PrintfC;
}


